<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <title>我的订单</title>
        <script src="${ctx}/assets/public_skin/js/layer/layer.js" type="text/javascript"></script>
        <script>
            $(function () {
                $(".tixingfahuo").click(function(){
                    //先推送消息到公众号
                        layer.msg('已经通知卖家发货', {
                            time: 1500, //20s后自动关闭
                            btn: ['明白了']
                        });
                })
                $(".shenqingtuikuan").click(function(){
                    //先推送消息到公众号
                        layer.msg('你确定不要了?', {
                            time: 1500, //20s后自动关闭
                            btn: ['确定']
                        });
                })
                $(".quedingshuohuo").click(function(){
                    //先推送消息到公众号
                        layer.msg('已经通知卖家发货', {
                            time: 1500, //20s后自动关闭
                            btn: ['明白了']
                        });
                })
                $(".guanbijiaoyi").click(function(){
                    //先推送消息到公众号
                        layer.msg('已经通知卖家发货', {
                            time: 1500, //20s后自动关闭
                            btn: ['明白了']
                        });
                })
            });
        </script>
    </head>
<body>
<article class="viewports">
    <div class="tab_menu">
        <div class="mt layout-box b-ffffff tac">
            <a class="box-col curr" href="javascript:;">全部订单</a>
            <a class="box-col" href="${ctx}/pre/payment">待付款</a>
            <a class="box-col" href="${ctx}/order/inbound">待收货</a>
            <a class="box-col" href="${ctx}/order/closed">已关闭</a>
        </div>
        <ul class="mc list_item c3">
            <c:forEach var="item" items="${orderModelList}">
            <li class="odr_t odr_b mb10" >
                <a href="${ctx}/order/details?orderId=${item.oOrder.orderId}">
                <div class="plr20">
                    订单号：${item.oOrder.orderNum}<span class="r">${item.oOrder.sellerShopName}</span>
                </div>
                <c:forEach items="${item.orderProductsEntityList}" var="ite">
                <div class="layout-box p20 odr_b">
                    <div class="ith_img usernane_img140 mr20">
                        <span class="bg_span" style="background-image:url(${ite.image});"></span>
                    </div>
                    <div class="box-col">
                        <h2 class="fs28 hgt2">${ite.title}</h2>
                        <div class="fs24 mt20 lh1">
                            <span class="c-cb1448">&yen;${ite.price}</span>
                            <span class="r ">&times;${ite.quantity}</span>
                        </div>
                    </div>
                </div>
                </c:forEach>
                <div class="plr20 tar odr_b">共${item.orderProductNum}件商品 实付款：&yen;${item.oOrder.paymentMoneyAmount}(免邮费)</div>
                </a>
                <div class="plr20">
                    <c:choose>
                        <c:when test="${item.oOrder.orderStatus==0}">
                           <span class="c-cb1448">待付款</span>
                        </c:when>
                        <c:when test="${item.oOrder.orderStatus==2}">
                            <span class="c-cb1448">已发货</span>
                        </c:when>
                        <c:when test="${item.oOrder.orderStatus==1}">
                            <span class="c-33cc66">已付款</span>
                        </c:when>
                    </c:choose>
                        <span class="r">
                              <c:choose>
                                  <c:when test="${item.oOrder.orderStatus==0}">
                                      <a  class="odr2 r5 ptb5_lr15 guanbijiaoyi" href="javascript:void(0);">关闭交易</a>&nbsp;&nbsp;
                                      <a  class="odr2 r5 ptb5_lr15 c-cb1448" href="${ctx}/order/details?orderId=${item.oOrder.orderId}">去付款</a>
                                  </c:when>
                                  <c:when test="${item.oOrder.orderStatus==2}">
                                      <a   class="odr2 r5 ptb5_lr15 c-cb1448 quedingshuohuo" href="javascript:void(0);">确定收货</a>
                                  </c:when>
                                  <c:when test="${item.oOrder.orderStatus==1}">
                                      <a  class="odr2 r5 ptb5_lr15 shenqingtuikuan" href="javascript:void(0);">申请退款</a>&nbsp;&nbsp;
                                      <a  class="odr2 r5 ptb5_lr15 c-33cc66 tixingfahuo" href="javascript:void(0);">提醒发货</a>
                                  </c:when>
                              </c:choose>
                        </span>
                </div>
            </li>
                </c:forEach>
            <%--<li class="odr_t odr_b mb10">--%>
                <%--<div class="plr20">--%>
                    <%--订单号：1985987844<span class="r">乐享数码店铺</span>--%>
                <%--</div>--%>
                <%--<div class="layout-box p20 odr_b">--%>
                    <%--<div class="ith_img usernane_img140 mr20">--%>
                        <%--<span class="bg_span" style="background-image:url(https://g-search2.alicdn.com/img/bao/uploaded/i4/TB1LfPaIFXXXXXEapXXXXXXXXXX.jpg_180x180.jpg);"></span>--%>
                    <%--</div>--%>
                    <%--<div class="box-col">--%>
                        <%--<h2 class="fs28 hgt2">苹果   iPhone6s  玫瑰金 16G</h2>--%>
                        <%--<div class="fs24 mt20 lh1">--%>
                            <%--<span class="c-cb1448">&yen;4988.00</span>--%>
                            <%--<sapn class="r ">--%>
                                <%--&times;1--%>
                                <%--</span>--%>
                        <%--</div>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="plr20 tar odr_b">共1件商品 实付款：&yen;4988.00(免邮费)</div>--%>
                <%--<div class="plr20">--%>
                    <%--<span class="c-33cc66">已完成</span>--%>
                        <%--<span class="r">--%>
                            <%--<a class="odr2 r5 ptb5_lr15 c-33cc66" href="#">确认收货</a>--%>
                        <%--</span>--%>
                <%--</div>--%>
            <%--</li>--%>
        </ul>
    </div>
</article>
</body>
</html>